home *** CD-ROM | disk | FTP | other *** search
/ Champak 56 / Volume 56 - JOGO DISK .iso / Games / Sue.swf / scripts / DefineButton2_660 / BUTTONCONDACTION on(press).as next >
Text File  |  2008-01-09  |  1KB  |  52 lines

  1. on(press){
  2.    if(Number(_parent._currentframe) < 37)
  3.    {
  4.       if(Number(_root.skill_check) == 0)
  5.       {
  6.          _parent.play();
  7.          _root.bit.gotoAndStop(2);
  8.          i = 1;
  9.          while(i < 10)
  10.          {
  11.             eval("_root.h" add i).mask.gotoAndStop(2);
  12.             i++;
  13.          }
  14.       }
  15.       if(Number(_root.skill_check) < 6)
  16.       {
  17.          _root.Skill(_parent.h);
  18.          i = 1;
  19.          while(i < 10)
  20.          {
  21.             eval("_root.h" add i).mask.gotoAndStop(2);
  22.             i++;
  23.          }
  24.       }
  25.       if(Number(_root.skill_check) == 6)
  26.       {
  27.          _root.changeColor(_parent.h.m);
  28.          _root.changeColorLine(_parent.h.l);
  29.          _parent.h.l.gotoAndStop(2);
  30.       }
  31.    }
  32.    if(Number(_parent._currentframe) == 37)
  33.    {
  34.       if(Number(_root.skill_check) < 6)
  35.       {
  36.          _root.Skill(_parent.h);
  37.          i = 1;
  38.          while(i < 10)
  39.          {
  40.             eval("_root.h" add i).mask.gotoAndStop(2);
  41.             i++;
  42.          }
  43.       }
  44.       if(Number(_root.skill_check) == 6)
  45.       {
  46.          _root.changeColor(_parent.h.m);
  47.          _root.changeColorLine(_parent.h.l);
  48.          _parent.h.l.gotoAndStop(2);
  49.       }
  50.    }
  51. }
  52.